package org.study.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.csp.sentinel.annotation.SentinelResource;

@RestController
public class FeignController {
	
	@Autowired
	FeignService feignService;
	
	@RequestMapping("test")
	 @SentinelResource(value="hi")
	public String test() {
		return feignService.products();
		
	}

}
